package com.nanjing.demo.feignservice;

import com.nanjing.demo.feignfallback.GroupFeignFallBack;
import com.nanjing.demo.model.common.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;


/**
 * 某一场考试所有报名的人称为group
 *
 * @author wubeibei
 * @date 2019/11/3
 */
@FeignClient(name = "2", url = "http://97.4.113:8089", path = "/api/crowd", fallback = GroupFeignFallBack.class)
public interface GroupFeignService {
    @PostMapping("/group/test")
    AjaxResult<List<String>> getGroupByExam(String caseTakeId);

}
